<?php
$this->breadcrumbs=array(
//	'Coffee Recommends'=>array('index'),
	'Apply to be Owner'
);
?>

<h1>Apply to be Owner</h1>

<div class="rc_main"><?php if(Yii::app()->user->hasFlash('coffeeApply')){ ?>

<div class="flash-success"><?php echo Yii::app()->user->getFlash('coffeeApply'); ?>
</div>

<?php }else{ ?>
<div class="form"><?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'coffee-apply-apply-form',
	'enableAjaxValidation'=>false,
)); ?>

<?php echo $form->errorSummary($model); ?>
<p>You are applying to MCR to be owner of </p>
<h3><?php  echo CHtml::link($coffeeShop->name,array('coffeeShop/viewShop','id'=>$coffeeShop->id)) ?></h3>
<p>Hint: <?php echo CHtml::link('Complete Profile',array('/user/user/edit')); ?> will increase the chance that you will be approved.</p>
<div class="row"><p>Put some comments here if you like:</p>
<?php echo $form->textArea($model,'comment',array('rows'=>5,'cols'=>40)); ?>
<?php echo $form->error($model,'comment'); ?></div>



<div class="row buttons"><?php echo CHtml::submitButton('Apply'); ?></div>

<?php $this->endWidget(); ?></div><?php } ?>
<!-- form --></div>
